const state = {
  userInfo: null,
  companyInfo: {},
  token: '',
  userId: '',
  history: '',
  menu: [],
  auth: '',
  oauth: '',
  vipInfo: {},
  appInfo: {},
  baseUrl: '',
  identityList: [],
  expiresIn: '',
  showToast: false,
  paymentDetail: null,
  memberInfo: null,
  customerInfo: null,
  bankCardInfo: null
}

const mutations = {
  setUserInfo: (state, data) => {
    state.userInfo = data
  },
  setCompanyInfo: (state, data) => {
    state.companyInfo = data
  },
  setToken: (state, data) => {
    state.token = data
  },
  setUserId: (state, data) => {
    state.userId = data
  },
  setHistory: (state, data) => {
    state.history = data
  },
  setMenu: (state, data) => {
    state.menu = data
  },
  setAuth: (state, data) => {
    state.auth = data
  },
  setOauth: (state, data) => {
    state.oauth = data
  },
  setVipInfo: (state, data) => {
    state.vipInfo = data
  },
  setAppInfo: (state, data) => {
    state.appInfo = data
  },
  setBaseUrl: (state, data) => {
    state.baseUrl = data
  },
  setIdentityList: (state, data) => {
    state.identityList = data
  },
  setExpiresIn: (state, data) => {
    state.expiresIn = data
  },
  setShowToast: (state, data) => {
    state.showToast = data
  },
  setPaymentDetail: (state, data) => {
    state.paymentDetail = data
  },
  setMemberInfo: (state, data) => {
    state.memberInfo = data
  },
  setCustomerInfo: (state, data) => {
    state.customerInfo = data
  },
  setBankCardInfo: (state, data) => {
    state.bankCardInfo = data
  }
}

const actions = {

}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
